package com.kehutong.session.dao;

import org.coraframework.orm.annotation.Dao;
import org.coraframework.orm.annotation.UpdateMapper;
import org.coraframework.orm.jdbc.execute.Condition;

/**
 * 预测统计dao
 *
 * @author wupengfei
 */
@Dao
public interface SessionDao {

    @UpdateMapper(
            mainDB = true,
            sql = "update t_session set deleted = true where to_days(createTime) = to_days(now()) and ${};"
    )
    Integer deleteSession(Condition... condition);
}
